package com.gzc.pm.dao;

import java.util.List;

import com.gzc.pm.bean.CPLAxleBean;

import cn.skyclass.ibatis.IBatisDao;
import cn.skyclass.net.OperationResult;

public class CPLAxleDao {

	private IBatisDao dao = new IBatisDao();
	
	@SuppressWarnings("unchecked")
	public List<CPLAxleBean> getAll(){
		return dao.getList("CPLAxle.getAll", null);
	}
	
	public OperationResult addOne(CPLAxleBean bean){
		return dao.executeInsert("CPLAxle.insert", bean);
	}
	
	public OperationResult deleteById(int id){
		return dao.executeDelete("CPLAxle.deleteById", id);
	}
	
}
